<?php
namespace Fiestissima\CRM\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ClienteEmpresaType extends AbstractType
{
	public function buildForm(FormBuilderInterface $builder, array $options)
	{
		$builder
		->add('ceRazonSocial', 'text')
		->add('ceContacto', 'text')
		->add('cTipoDoc', 'choice', array('choices' => array('DNI'=>'DNI', 'CUIT'=>'CUIT', 'CUIL'=>'CUIL')))
		->add('cNroDoc', 'text')
		->add('cTipoIva', 'choice', array('choices' => array('Resp Inscripto'=>'Resp Inscripto', 'Excento'=>'Excento', 'Consumidor Final'=>'Consumidor Final')));
	}
	
	public function getName()
	{
		return 'clienteEmpresa';
	}
	
	public function setDefaultOptions(OptionsResolverInterface $resolver)
	{
		$resolver->setDefaults(array(
				'data_class' => 'Fiestissima\CRM\Entity\ClienteEmpresa',
		));
	}
}